import { MyAppType } from "@/router/type";
import { lazy } from "react";
import WithLoading from "@/layout/WithLoading";
import { ShoppingCartOutlined } from "@ant-design/icons";

const MyCart = lazy(() => import("@/views/Cart/MyCart"));

const Cart: MyAppType = {
  path: "/cart",
  name: "Cart",

  meta: {
    title: "购物车",
    icon: <ShoppingCartOutlined />,
    order: 3,
  },
  children: [
    {
      path: "myCart",
      name: "MyCart",
      element: WithLoading(<MyCart />),
      meta: {
        title: "我的购物车",
      },
    },
  ],
};

export default Cart;
